Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
apache RewriteRules "/$2?res=$1" weird result

I'm writing apache rewrite rules as below (in fact it is hard to understand rewrite syntax)

RewriteRule /res/([^/.]+)/([^/.*]+) /$2?res=$1 [QSA]

The result look weird and i can't find a way to make it correct.

Try 1: http://aaa.com/product/res/aa-bb-cc/json.php
Output 1: http://aaa.com/product/json?res=aa-bb-cc.php Expected 1: http://aaa.com/product/json.php?res=aa-bb-cc

Try 2: http://aaa.com/product/res/aa-bb-cc/m/s/qt.php?action=edit&record_id=123
Output 2: http://aaa.com/product/m?res=aa-bb-cc/s/qt.php&action=edit&record_id=123
Expected 1: http://aaa.com/product/m?/s/qt.php?action=edit&record_id=123&res=aa-bb-cc

Any help will be greatly appreciated and thanks in advance.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!